import { http, listToTree } from '@idmy/core'

export async function pageArea(pageIn: any) {
  const { rows } = await http.post<any>('/api/area/page', pageIn, { appKey: 'sys' })
  return listToTree(rows)
}
